import { createApp } from 'vue';
import pinia from '/src/store/index';
import App from '@/App.vue';
import router from '@/router';
import bus from "@/store/bus";
import sz from './sz.js';
import '@/utils/color.js';
import '@/theme/app.scss';
import TinyThemeTool from '@opentiny/vue-theme/theme-tool'
const themeTool = new TinyThemeTool()
const app = createApp(App);
app.config.globalProperties.$bus = bus
const borderColor = '#C0C0C0'
themeTool.changeTheme({
    name: 'my-app-custom-styles',
    data: {
        'tv-color-border': borderColor,
        'tv-color-border-divider': borderColor,
        'tv-font-size-md': '13px',
        'tv-border-radius-sm': '2px',
        'tv-border-radius-md': '2px'
    },
})

app.use(pinia).use(router)
app.use(sz).mount('#app')